package com.kye.express.business.jd.shop.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.kye.model.bean.jd.shop.JDGoodsCategoryBean;

/**
 * @author : Joe
 * @version : 1.0
 * @editor : Joe
 * @created : 29/01/2018
 * @updated : 29/01/2018
 * @description : <Description>
 * @update_reason : <UpdateReason>
 */

public class JDGoodsCategoryModel implements Parcelable {

    private JDGoodsCategoryBean categoryBean;


    public JDGoodsCategoryBean getCategoryBean() {
        return categoryBean;
    }

    public void setCategoryBean(JDGoodsCategoryBean categoryBean) {
        this.categoryBean = categoryBean;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.categoryBean, flags);
    }

    public JDGoodsCategoryModel() {
    }

    protected JDGoodsCategoryModel(Parcel in) {
        this.categoryBean = in.readParcelable(JDGoodsCategoryBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<JDGoodsCategoryModel> CREATOR = new Parcelable.Creator<JDGoodsCategoryModel>() {
        @Override
        public JDGoodsCategoryModel createFromParcel(Parcel source) {
            return new JDGoodsCategoryModel(source);
        }

        @Override
        public JDGoodsCategoryModel[] newArray(int size) {
            return new JDGoodsCategoryModel[size];
        }
    };
}
